<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\bootstrap\ActiveForm;


$type = Yii::$app->params['finance_type'];
$status = Yii::$app->params['finance_status'];
?>

<style type="text/css">
	.list-group-item p {float:left; width:20%; height:35px;}
	.detail .row div {height: 35px;}
</style>

<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
	<h4 class="modal-title"><small>价格明细</small></h4>
</div>

<div class="detail">
	<div class="row" style="margin-top:15px;font-weight:bold;">
		<div class="col-md-offset-1 col-md-2">财务单号</div>
		<div class="col-md-1">类型</div>
		<div class="col-md-2">收款单位/人</div>
		<div class="col-md-2">状态</div>
		<div class="col-md-2">创建时间</div>
		<div class="col-md-2">金额</div>
	</div>
	<hr style="margin:0px 0 5px 0;color:#aaa;">

	<?php if($data){ ?>
		<?php foreach($data as $financeOrder){ ?>
		<div class="row" style="color:#8e8e8e;font-size:12px;">
			<div class="col-md-offset-1 col-md-2">
				<?= $financeOrder->finance->code ?>
			</div>
			<div class="col-md-1"><?= $type[$financeOrder->finance->type] ?></div>
			<div class="col-md-2"><?= $financeOrder->finance->company ?><br><?= $financeOrder->finance->name ?></div>
			<div class="col-md-2"><?= $status[$financeOrder->finance->status] ?></div>
			<div class="col-md-2"><?= $financeOrder->finance->created_at ?></div>
			<div class="col-md-2"><?= $financeOrder->price ?></div>
		</div>
		<?php } ?>
	<?php } ?>

	<div class="row" style="margin-top:30px;" >
		<div class="col-md-offset-1 col-md-8"></div>
		<div class="col-md-3" style="color:#f31c18;"><b>合计 : <?= Yii::$app->formatter->asCurrency($order->financeSuccess) ?> </b></div>
	</div>
</div>

